package com.longxi.tianjintianbao.utils;

/**
 * Created by 70339 on 2018/5/15.
 * 代码无八阿哥
 * 阿弥陀佛
 */
public class TypeTransformUtils {
    public static int StringToInt(String s){
        int i = 0;
        try {
            if(!"".equals(s)){
                i = Integer.parseInt(s);
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
        return i;
    }
}
